#include "utils.h"
#include <cctype>
#include <string>

#ifdef DEBUG
#include <iostream>
#endif

bool rule7(std::string key) {
    char nLettres = 0;
    for (int i = 0; i < key.length(); i++) {
        if (isalpha(key[i])) {
            nLettres++;
        }
    }
    if (RANGE(nLettres, 5, 13)) {
        return true;
    }
#ifdef DEBUG
#pragma omp critical
    std::cerr << key << " - R7 : " << (int) nLettres << std::endl;
#endif
    return false;
}